-- GENERATED SPELL FOR [Corruptor Tentacle] --


function spell0_33985(pUnit, Event) --@Apathy,n/a--
pUnit:FullCastSpellOnTarget(64156,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33985', 21500, 1)
end

function spell1_33985(pUnit, Event) --@Black Plague,n/a--
pUnit:FullCastSpellOnTarget(64153,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33985', 25500, 1)
end

function spell2_33985(pUnit, Event) --@Curse of Doom,n/a--
pUnit:FullCastSpellOnTarget(64157,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33985', 13500, 1)
end

function spell3_33985(pUnit, Event) --@Draining Poison,n/a--
pUnit:FullCastSpellOnTarget(64152,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33985', 19500, 1)
end

function spell4_33985(pUnit, Event) --@Erupt,Self--
pUnit:FullCastSpellOnTarget(64144,pUnit)
pUnit:RegisterEvent('Sorts_33985', 611, 1)
end

function Sorts_33985(pUnit, Event)
local choix_sorts_33985 = math.random(0, 4)
if choix_sorts_33985 == 0 then
pUnit:RegisterEvent('spell0_33985', 1, 1)
end
if choix_sorts_33985 == 1 then
pUnit:RegisterEvent('spell1_33985', 1, 1)
end
if choix_sorts_33985 == 2 then
pUnit:RegisterEvent('spell2_33985', 1, 1)
end
if choix_sorts_33985 == 3 then
pUnit:RegisterEvent('spell3_33985', 1, 1)
end
if choix_sorts_33985 == 4 then
pUnit:RegisterEvent('spell4_33985', 1, 1)
end
end

function mob33985_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33985', math.random(1500, 3000), 1)
end

function mob33985_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33985_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33985_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33985, 1, 'mob33985_Action')
RegisterUnitEvent(33985, 2, 'mob33985_Leave')
RegisterUnitEvent(33985, 3, 'mob33985_Kill')
RegisterUnitEvent(33985, 4, 'mob33985_Die')
